/**
 * 
 */
package name.yzhu.httpserver;

import javax.servlet.http.HttpServletRequest;

/**
 * http permission check
 * @author yhzhu
 *
 */
public interface IHttpPermission {
	/**
	 * check if it has the permission
	 * @param request
	 * @param retData
	 * @return true if the permission is allowed otherwise return false
	 */
	boolean check(HttpServletRequest request, HttpRequestType type, 
			HttpReturnData retData);
}
